#编写一个程序，读取文件中保存的10个学生成绩名单信息(学号,姓名, Python课程分数); 然后按照分数从高到低进行排序输出
total = []            #保存文件中全部内容
scores = []           #保存学生分数
with open( 'C:\\Users\\wbw\\Desktop\\Whhpython\\homework3\\student.txt', 'r', encoding = 'utf-8' ) as f:
    print( f.readline().strip() )         #输出第一行
    for line in f.readlines():
        total.append( line.strip().split() )

    for i in total:
        scores.append( i[2] )

scores.sort(reverse=True)        #排序

for score in scores:
    for info in total:
        if score in info:
            print( info[0], end = '\t' )
            print( info[1], end = '\t' )
            print( info[2] )